﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AutoUpdate.Utility.Helper
{
    using Newtonsoft.Json;
    using System.Dynamic;

    public class JsonHelper
    {
        public static T getObject<T>(string value)
        {
            T result = default(T);

            result = JsonConvert.DeserializeObject<T>(value);

            return result;
        }

        public static string getString(object obj)
        {
            return JsonConvert.SerializeObject(obj);
        }
    }
}
